<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<title>中国刊网</title>

<link href="css/space.css" rel="stylesheet" type="text/css" />

<%--<script type="text/javascript" language="javascript">
	function PreviewImg(imgFile) {
		var newPreview = document.getElementById("newPreview");
		/*var imgDiv = document.createElement("div");
		document.body.appendChild(imgDiv);
		imgDiv.style.width = "200px";    imgDiv.style.height = "200px";*/
		newPreview.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod = scale)";
		newPreview.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
		/*newPreview.appendChild(imgDiv);*/
		/*var showPicUrl = document.getElementById("showPicUrl");*/
		/* <!--newPreview.innerText =imgFile.value;    */
		/*newPreview.style.width = "200px";
		newPreview.style.height = "200px";*/
	}
</script>
--%>

<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/space.js"></script>
<style type="text/css">
 .cont
 {
  height:700px;
  width:660px;
 }
.cont-title
{
    width:650px;
	height:auto;
	border-bottom:solid 2px #5F5F5F;
	margin-bottom:9px;
	text-align:left;
}
</style>
</head>

<body>
	<div class="all">
		<div class="bodyge-left">
			<div class="bodyge-left-a1"><span class="font-b">创建期刊</span></div>
			<div class="chen_body_left">
				<form id="createEjuornalForm" action="periodical/addPeriodical" method="post" enctype="multipart/form-data">
					<table width="640px" class="fontStyle">
						<tr id="categoryMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>期刊类别不能为空</span></td>
						</tr>
						<tr>
							<td height="40px;">期刊类别：</td>
							<td width="450px">
								<select name="periodical.categoryId" id="category" onchange="chiefVali('category')" class="input-a1">
									<option value='0'>请选择期刊类别---</option>
								</select>
							</td>
						</tr>
						<tr id="ejuornalNameMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>期刊名称不能为空</span></td>
						</tr>
						<tr>
							<td height="40px;">期刊名称：</td>
							<td width="450px"><input id="ejuornalName" name="periodical.name" onblur="chiefVali('ejuornalName')" type="text" class="input-a1" /></td>
						</tr>
						<tr id="cycleMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>出版周期不能为空</span></td>
						</tr>
						<tr>
							<td height="40px;">出版周期：</td>
							<td width="450px">
								<select id="cycle" name="periodical.cycle" onchange="chiefVali('cycle')" class="input-b1">
									<option value="0">请选择</option>
									<option value="周刊">周刊</option>
									<option value="月刊">月刊</option>
									<option value="半年刊">半年刊</option>
									<option value="年刊">年刊</option>
								</select>
							</td>
						</tr>
						<tr id="ejuIntroMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>期刊简介不能为空</span></td>
						</tr>
						<tr>
							<td valign="top" height="40px;">简&nbsp;&nbsp;&nbsp;&nbsp;介：</td>
							<td rowspan="3"><textarea id="ejuIntro" onblur="chiefVali('ejuIntro')" class="form-a" name="periodical.introduce"></textarea></td>
						</tr>
						<tr></tr>
						<tr></tr>
						<tr id="hostUnitMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>主办单位不能为空</span></td>
						</tr>
						<tr>
							<td height="40px;">主办单位：</td>
							<td width="450px"><input id="hostUnit" name="periodical.hostUnit" type="text" onblur="chiefVali('hostUnit')" class="input-a1" /></td>
						</tr>
						<!-- <tr>
							<td height="40px;">封&nbsp;&nbsp;&nbsp;&nbsp;面：</td>
							<td width="450px"><input id="cover" type="file" name="upload" onblur="chiefVali('cover')" size="20" style="width:250px; font-size:14px;" onChange="javascript:PreviewImg(this);" /><font color="#999999">建议200*600像素,小于1M</font></td>
						</tr> -->
						<tr>
							<td height="40px;">封&nbsp;&nbsp;&nbsp;&nbsp;面：</td>
							<td width="450px"><input id="cover" type="file" name="upload" onblur="chiefVali('cover')" size="20" style="width:450px; font-size:14px;" onChange="javascript:PreviewImg(this);" /></td>
						</tr>
						<tr></tr>
						<tr></tr>
						<tr id="tagMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>期刊标签不能为空</span></td>
						</tr>
						<tr>
							<td width="80px" height="40px;">标&nbsp;&nbsp;&nbsp;&nbsp;签：</td>
							<td width="600px"><textarea id="tag" name="periodical.tag" onfocus="textFocusStyle('tag')" onblur="chiefVali('tag')" class="textStyle_1" style="padding-top:5px; width:450px; height:25px;">标签之间用空格隔开</textarea></td>
						</tr>
						<tr id="boardMsg" class="periodicalWarning">
							<td colspan="2" style="padding-left:100px;"><span>期刊板块不能为空</span></td>
						</tr>
						<tr>
							<td width="80px" height="40px;">版&nbsp;&nbsp;&nbsp;&nbsp;块：</td>
							<td width="600px"><textarea id="board" name="value" onfocus="textFocusStyle('board')" onblur="chiefVali('board')" class="textStyle_1" style="width:450px; padding-top:5px; height:25px;">板块之间用空格隔开</textarea></td>
							</tr>
						<tr>
							<td height="70px" width="90px" colspan="2">								
								<div class="wang-button">
									<input id="createEjuornalSub" type="button" onclick="createEjuornalSubForm()" class="inputStyle" value="确定" />
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="reset" class="inputStyle" value="取消" />
								</div>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>





